<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method='xml'
								indent="yes"
								omit-xml-declaration="yes"
								doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"
								doctype-system = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
								/>

<!-- includes -->
<xsl:include href="admin_template.xsl"/>
<xsl:param name="_id"/>
<xsl:param name="_user_logged_in"/>

<xsl:template match="/">
<html>
	<!-- html head -->
	<xsl:call-template name="admin_head">
									<xsl:with-param name="_title">Delete Photo</xsl:with-param>
	</xsl:call-template>


	<body id="admin_body">
		<xsl:if test="($_user_logged_in)!='false'">
			<!-- menubar -->
			<xsl:call-template name="admin_menu"/>

			<!-- content -->
			<div id="admin_content_div">
				<h3>Are you sure you want to delete this photo?</h3>
				<img id="admin_big_img" align="center">
					<xsl:attribute name="src">index.php?op=thumb&amp;rat=0.15&amp;id=<xsl:value-of select="$_id"/></xsl:attribute>
				</img>
				<form method="post">
					<xsl:attribute name="action">index.php?op=delete&amp;id=<xsl:value-of select="$_id"/></xsl:attribute>
					<!-- buttons -->
					<p id="admin_form_buttons_p">
						<input type="hidden" name="form_posted" value="posted"/>
						<input type="submit" value="Yes" id="admin_form_button"/>
						<input type="reset" value="No" id="admin_form_button"/>
					</p>
				</form>
			</div>
		</xsl:if>
		<xsl:if test= "($_user_logged_in)!='true'">
			<h3>Permission forbidden. Not authenticated.</h3>
			<a>
				<xsl:attribute name="href">index.php?op=auth</xsl:attribute><strong>Log in </strong>
			</a>
		</xsl:if>
	</body>
</html>
</xsl:template>

</xsl:stylesheet>
